var base64Str = 'emhhbmdzYW46MTIzNDU2';
//得到buffer实例
let buf = Buffer.from(base64Str, "base64");
//转换成utf-8字符串
let utf8Str = buf.toString("utf-8");

console.log(utf8Str);